package com.zjj.spring.read.xml.aop.springaop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
/**
 * 对方法增强
 * @author zhuangjiajie778
 */
public class GreetingAroundAdvice implements MethodInterceptor {

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {

		System.out.println("【3】--- GreetingAroundAdvice after hello ---");		
		Object object = invocation.proceed();
		System.out.println("【3】 --- GreetingAroundAdvice after hello ---");		
		return "[GreetingAroundAdvice代理对返回值做的处理] - 真实返回值如下：[" + object + "]";
	}

}
